#include <iostream>

using namespace std;

void contributionIncome(int schol, int save, int fam, int salary, int &contribution)
{
	cout << "We Will Start By Calculating Contribution And Income" << endl;
	cout << "Every Input Should Be Summed Up To Per Year!" << endl;
	cout << "Enter The Amount Of Scholarships: ";
	cin >> schol;

	cout << "Enter The Amount Of Available Savings: ";
	cin >> save;

	cout << "Enter The Amount Of Family Contributions: ";
	cin >> fam;

	cout << "Enter The Amount Of Expected Salary: ";
	cin >> salary;

	contribution = schol + save + fam + salary;
}

void expense(int tuition, int supply, int meal, int snack, int rent, int elec, int mobile, 
	int internet,int doctor, int movies, int clothing, int club, int tran, int &sum1)

{
	cout << "We Will Now Calculate The Expenses" << endl;
	cout << "Again, Every Input Should Be Summed Up To Per Year!" << endl;
	cout << "Enter The Amount Of Tuition: ";
	cin >> tuition;

	cout << "Enter The Cost of Textbooks, Supplies, etc: ";
	cin >> supply;

	cout << "Enter The Cost of Meal Plans: ";
	cin >> meal;

	cout << "Enter The Cost Of Groceries And Snacks, etc: ";
	cin >> snack;

	cout << "Enter The Cost Of Transportation: ";
	cin >> tran;

	cout << "Enter The Total Amount Of Rent: ";
	cin >> rent;

	cout << "Enter The Costt Of Electricity Bills: ";
	cin >> elec;

	cout << "Enter The Cost Of Mobile Phone Bills: ";
	cin >> mobile;

	cout << "Enter The Cost Of Internet Connection Fee: ";
	cin >> internet;

	cout << "Enter The Cost Of Doctor Visits: ";
	cin >> doctor;

	cout << "Enter The Amount Of Movies, Concerts, etc: ";
	cin >> movies;

	cout << "Enter The Cost Of Clothings: ";
	cin >> clothing;

	cout << "Enter The Cost Of Club Fees, Gifts, etc: ";
	cin >> club;

	sum1 = tuition + supply + meal + snack + rent + elec + mobile + internet + doctor + movies +
		clothing + club + tran;
}

void KCStuBud()
{
	int schol = 0, save = 0, fam = 0, salary = 0, contribution = 0;
	int tuition = 0, supply = 0, meal = 0, snack = 0, rent = 0, elec = 0, mobile = 0, 
		internet = 0, doctor = 0, movies = 0, clothing = 0, club = 0, tran = 0, sum1 = 0;

	cout << "Welcome To KC's Student Budget Calculator" << endl;
	contributionIncome(schol, save, fam, salary, contribution);
	expense(tuition, supply, meal, snack, rent, elec, mobile, internet, doctor, movies,
		clothing, club, tran, sum1);

	int budget = (contribution - sum1);
	cout << "The Total Contributions Are: $" << contribution << endl;
	cout << "The Total Expenses Are: $" << sum1 << endl;
	cout << "The Estimated Budget Will Be: $";
	cout << budget;
	cout << endl;


	system("PAUSE");
}
